package com.bankLogisticsSys.interceptor;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;

public class ManageLoginInterceptor implements Interceptor{

	@Override
	public void intercept(Invocation inv) {
		if(inv.getController().getSessionAttr("username")==null){
			inv.getController().redirect("/manage/login");
		}else{
			inv.invoke();
		}
	}
	
}
